﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="02b2e0fa-5f4a-46d0-8fb5-d602622bed5f.TranslateListCustomAction"
                RegistrationType="List"
                RegistrationId="100"
                Location="CommandUI.Ribbon"
                Sequence="10001"
                Title="Invoke &apos;TranslateListCustomAction&apos; action">
    <CommandUIExtension>
      <!-- 
      Update the UI definitions below with the controls and the command actions
      that you want to enable for the custom action.
      -->
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
          <Button Id="Ribbon.ListItem.Actions.TranslateListCustomActionButton"
                  Alt="Translate It"
                  Sequence="100"
                  Command="Invoke_TranslateListCustomActionButtonRequest"
                  LabelText="Translate It"
                  TemplateAlias="o1"
                  Image32by32="_layouts/15/images/placeholder32x32.png"
                  Image16by16="_layouts/15/images/placeholder16x16.png" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="Invoke_TranslateListCustomActionButtonRequest"
                          CommandAction="~remoteAppUrl/Pages/TranslateList.aspx?{StandardTokens}&amp;List={ListId}"/>
      </CommandUIHandlers>
    </CommandUIExtension >
  </CustomAction>
</Elements>
